﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" 
    CodeBehind="Default.aspx.cs" Inherits="brockredge._Default" enableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">

<script type="text/javascript">
    $(".loginDivcss").corner();
    $(".addByLocation").corner();
    $(".addimgdiv").corner();
    $(".a").corner();
    $(".img").corner();

   
</script>
</asp:Content>


<asp:Content ID="DefaultBodyContent" runat="server" ContentPlaceHolderID="MainContent">
<table width="100%">
<tr valign="top">
<td style="width:20%;">
    <div id="searchPaneldv" runat="server" style="width:200px; height:auto; background-color:#7E2217; color:White; float:left;"> 
        <asp:Panel ID="pnlsearch" runat="server">
       
            <table>
                <tr>
                    <td>Search 
                    </td>
                </tr>
                <tr>
                    <td>Property For
                    </td>
                    <td>
                        <asp:CheckBox ID="chkSell" runat="server" Text="Sell"/><asp:CheckBox ID="chkRent" runat="server" Text="Rent"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lbState" runat="server" Text="State"></asp:Label>
                    </td>
                    <td>
                    
            <asp:DropDownList ID="ddlState" runat="server" Width="100px">
            </asp:DropDownList>
            </td>
            </tr>
            <tr>
            <td>
            <asp:Label ID="lblCity" runat="server" Text="City"></asp:Label>
           </td>
           <td>
           <asp:DropDownList ID="ddlcity" runat="server" width="100px">
           
            </asp:DropDownList>
            </td>
            </tr>
            <tr>
            <td>
            <asp:Label ID="lblArea" runat="server" Text="City"></asp:Label>
           </td>
           <td>
     
            <asp:DropDownList ID="ddlarea" runat="server" Width="100px">
            <asp:ListItem>Other</asp:ListItem>
            </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="searchbtn" runat="server" Text="search" 
                            onclick="searchbtn_Click" />
                    </td>
                </tr>
            </table>
       
    </asp:Panel>
    </div>
    <asp:DropShadowExtender ID="DSE1"
                            TargetControlID="searchPaneldv" 
                            Rounded="true"
                            Opacity=".2" 
                            ClientIDMode="Predictable" 
                            Radius="-1"
                            TrackPosition="true"
                            runat="server">
    </asp:DropShadowExtender>
   

       
                        </td>
                        <td style="width:80%;">
                       <asp:Repeater ID="mainAddContentRep" runat="server">
                       <ItemTemplate>
                       <table width="100%">
                       <tr valign="top">
                        <td colspan="2">  
                        <hr />
                        </td>
                        </tr>
                       <tr>
                        <td style="padding-left:2px;" id="addimgdiv" class="addimgdiv">
                            <img src="IMAGES/defHome.jpg" id ="img" class="img"/>   
                        </td>
                        <td align="left" style="padding-left:4px;"> 
                  
                            <span style="color:Maroon;"><b><%# DataBinder.Eval(Container.DataItem, "Title") %></b></span>
                            <br />
                            <%# DataBinder.Eval(Container.DataItem, "Description") %>
                           
                        </td>
                        </tr>
                        <tr valign="top">
                        <td colspan="2">  
                        <hr />
                        </td>
                        </tr>
                        </table>        
                       
                       
                        </ItemTemplate>
</asp:Repeater>
 </div>
 </td>
 </tr>
 </table>

<div id="clear" style="height:20px;"></div>
    
<%-- Repeat the add in page--%>

 
    <asp:CascadingDropDown ID="CddlState" 
                                   TargetControlID="ddlstate" 
                                   runat="server"
                                   Category="State"
                                   PromptText="State:"
                                   LoadingText="Loading..."
                                   ServicePath="~/SERVICES/GetDataFromAjax.asmx"
                                   ServiceMethod="getStates">
    </asp:CascadingDropDown>
    <asp:CascadingDropDown ID="CddlCity" 
                               runat="server"
                               TargetControlID="ddlcity"
                               Category="City"
                               ParentControlID="ddlstate"
                               PromptText="City:"
                                LoadingText="Loading..."
                                ServicePath="~/SERVICES/GetDataFromAjax.asmx"
                                ServiceMethod="getCitiesByState">
    </asp:CascadingDropDown>
    <asp:CascadingDropDown ID="cddlArea" 
                               runat="server"
                               TargetControlID="ddlarea"
                               Category="Area"
                               ParentControlID="ddlcity"
                                PromptText="Area:"
                                LoadingText="Loading..."
                                ServicePath="~/SERVICES/GetDataFromAjax.asmx"
                                ServiceMethod="getAreas">
    </asp:CascadingDropDown>
</asp:Content>
